package com.zsh.myserver.exception;

/**
 * Copyright (C), 2020-2020
 * Author: Zhoushaohua
 * Date: 2020/4/11 15:36
 * Description: 拒绝访问、无权限操作异常
 */
public class ForbiddenException extends HttpException {

    public ForbiddenException(int code) {
        setHttpStatusCode(403);//拒绝访问、无权限操作(另401表示用户未登录的异常码)
        setCode(code);
    }
}
